﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TheatreManagementSystem
{
  public  class Seller:Employee, IFlexibleSalary
    {

      private const decimal bonusRate = 0.15m;
      public int SoldTicketsMonthly { get; set; }
      private static decimal constSalary = 500;
      public decimal ConstSalary
      {
          get { return constSalary; }

      }
      public Seller(string firstName,string lastName,string SSN):
          base(firstName,lastName,SSN)
      {
      }
      public decimal CalculateSalary()
      {
          return Seller.constSalary + bonusRate * this.SoldTicketsMonthly;
      }
      //public void CreateNewTicket(Customer customer,Performance performance,Seat seat)
      //{
      //    SoldTicketsMonthly++;
      //    TicketFactory.CreateNewTicket(customer, performance, seat);
      //}

    }
}
